CommandInsertTrafficSign Class Reference

#include <CommandInsertTrafficSign.h>

Inheritance diagram for CommandInsertTrafficSign:

Command List of all members.

Public Member Functions

 CommandInsertTrafficSign (osg::Vec3 pos, OSGWindows *osgwind, TrafficSignTypes newType)
bool execute ()
bool unexecute ()

Private Attributes

OSGWindows * osgwind_
TrafficSign * sign
vector< TraffEduObject * > insertedObjs_

Constructor & Destructor Documentation

CommandInsertTrafficSign::CommandInsertTrafficSign (  osg::Vec3  pos,
OSGWindows *  osgwind,
TrafficSignTypes  newType
) 
 

A constructor. Initializes osgwind_ and creates a new traffic sign object by using the given parameters.

Parameters:
pos a osg::Vec3 argument.
osgwind an OSGWindows pointer.
newType a TrafficSignTypes argument.


Member Function Documentation

bool CommandInsertTrafficSign::execute (   )  [virtual]
 

do the insertion of traffic sign object operation.

Returns:
Operation success

Implements Command.

bool CommandInsertTrafficSign::unexecute (   )  [virtual]
 

undo the insertion of traffic sign object operation.

Returns:
Operation success

Implements Command.


Member Data Documentation

vector<TraffEduObject*> CommandInsertTrafficSign::insertedObjs_ [private]
 

a private vector of TraffEduObjects. It holds the inserted traffic sign objects.

OSGWindows* CommandInsertTrafficSign::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.

TrafficSign* CommandInsertTrafficSign::sign [private]
 

a private variable. It is used to hold the created traffic sign object.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO